package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Setmeal;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

//套餐

public interface SetmealService {

    //分页查询
    Page<Setmeal> findByPage(String name, Integer pageNum, Integer pageSize);

    //新增
    void save(Setmeal setmeal);

    //删除
    void deleteByIds(Long[] ids);

    //根据分类id查套餐
    List<Setmeal> findByCategoryId(Long categoryId, Integer status);

    //批量起停
    void updateByIds(Long[] ids, Integer status);

    //回显
    Setmeal findById(Long id);
//修改，更新
    void update(Setmeal setmeal);
}
